package jmine.tec.report.impl;

import jmine.tec.report.api.RendererParameters;
import jmine.tec.report.api.ReportElement;

/**
 * Classe base para implementações de ReportElement
 * 
 * @author lundberg
 */
public abstract class AbstractReportElement implements ReportElement {

    private String reportId;

    private RendererParameters parameters;

    /**
     * Construtor
     * 
     * @param id id
     */
    public AbstractReportElement(String id) {
        this.reportId = id;
        this.parameters = new RendererParametersImpl();
    }

    /**
     * {@inheritDoc}
     */
    public final RendererParameters getParameters() {
        return this.parameters;
    }

    /**
     * {@inheritDoc}
     */
    public final String getReportId() {
        return this.reportId;
    }

    /**
     * {@inheritDoc}
     */
    public final void setReportId(String reportId) {
        this.reportId = reportId;
    }

}
